﻿<%@ Page Language="C#" MasterPageFile="~/back/Site.master" AutoEventWireup="true"
    CodeFile="Banners.aspx.cs" Inherits="back_Banners" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="Server">
    <div class="page-header">
        <h1>
            View Banner</h1>
    </div>
    <div id="divRed" runat="server">
        
    </div>
    <div id="divGreen" runat="server">
        
    </div>
    <asp:GridView ID="grdMenus" runat="server" AutoGenerateColumns="False" Width="100%"
        CssClass="table table-striped" OnRowDataBound="grdMenus_RowDataBound" OnRowEditing="grdMenus_RowEditing"
        OnRowCommand="grdMenus_RowCommand">
        <Columns>
            <asp:TemplateField HeaderText="Banner Name">
                <ItemTemplate>
                    <asp:Label ID="hdnMenuId" Style="display: none;" runat="server" Text='<%#Eval("Id") %>'></asp:Label>
                    <asp:Label ID="lblMenuName" runat="server" Text='<%# Eval("BannerName") %>'></asp:Label>
                </ItemTemplate>
                <%--<HeaderStyle CssClass="table-header-repeat line-left min-width" />--%>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Actions">
                <ItemTemplate>
                    <asp:Button ID="btnEdit" runat="server" CssClass="btn btn-info" Text="Edit" CommandName="EditMenu" OnClientClick="return confirm('Do you want to edit this content?')" />
                    &nbsp;&nbsp;
                    <asp:Button ID="btnDelete" runat="server" CssClass="btn btn-danger" Text="Delete" CommandName="DeleteMenu" OnClientClick="return confirm('Do you want to delete this content?')" />
                </ItemTemplate>
                <%--<ItemStyle VerticalAlign="Middle" HorizontalAlign="Center" Height="35px" />--%>
                <%--<HeaderStyle CssClass="table-header-repeat line-left min-width" />--%>
            </asp:TemplateField>
        </Columns>
        <%--<AlternatingRowStyle CssClass="alternate-row"></AlternatingRowStyle>--%>
    </asp:GridView>
</asp:Content>
